package transaction.imp;

import classification.PaymentClassification;
import classification.imp.HourlyClassification;
import schedule.PaymentSchedule;
import schedule.imp.WeeklySchedule;

public class AddHourlyEmployee extends AddEmployeeTransaction {
    private double hourlyRate;

    public AddHourlyEmployee(int empid, String name, String address, double hourlyRate) {
        super(empid, name, address);
        this.hourlyRate = hourlyRate;
    }

    @Override
    public PaymentClassification getPaymentClassification() {
        return new HourlyClassification(hourlyRate);
    }

    @Override
    public PaymentSchedule getPaymentSchedule() {
        return new WeeklySchedule();
    }

}
